第 3 步:我们可以使用一个动作让我们的精灵向下移动。我们改变动作中的数字来控制距离。

  • 去.拖出Move Down并将其放在程序的底部。
  • 将.move_down()中的整数参数从50更改为100 。

我们称其中没有小数或小数部分的数字为整数。整数始终为blue且不被引号包围,例如: 1 、 2和3 。

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("concert") sprite = codesters.Sprite("person4")
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)